//
//  YMHomActionView.swift
//  NewVersionDemo
//
//  Created by zeng on 2018/3/19.
//  Copyright © 2018年 youmy. All rights reserved.
//

import UIKit

class YMHomActionView: UIView {
    
    var didClick:((_ isLogin:Bool)->())?

    override func awakeFromNib() {
        super.awakeFromNib()
        self.frame = ym_screen_bounds
    }
    
    @IBAction func loginAction(_ sender: UIButton) {
        if (didClick != nil) {
            didClick?(true)
        }
    }
    
    @IBAction func closeAction(_ sender: UIButton) {
        if (didClick != nil) {
            didClick?(false)
        }
    }
    
}

extension YMHomActionView {
    class func nibView() -> YMHomActionView{
        return Bundle.main.loadNibNamed("YMHomActionView", owner: nil, options: nil)?.first as! YMHomActionView
    }
}
